package com.equipment.management.dao;


import com.equipment.management.entity.SensorData;
import com.equipment.management.entity.Floor;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


@Repository
public interface FloorDao {
    List<Map> selectFloors(@Param("floor_level") Integer floor_level);
    public Floor getFloorByMessage(@Param("floorname") String floorname, @Param("password") String password);
    public int addFloor(Floor floor);
    public int deleteFloor(Integer id);
    public int editFloor(Floor floor);

    Floor getFloorByLevel(int floor_level);
}
